function [Quantile]=DistApp_Hist_Quantile(QQ,QW,Pct)
QW          =   QW/sum(QW);
[QQ,Idx]    =   sort(QQ);
QW          =   QW(Idx);

Support     =   [QQ(1);QQ];
CDF         =   [0;cumsum(QW)];
[UniVal,UniInd] ...
            =   unique(CDF);

pp          =   interp1(CDF(UniInd),Support(UniInd),'pchip','pp');

Quantile    =   ppval(pp,Pct);